<?php
$products = $this->get_data('products');
$parent_url_segment = $this->get_data('parent_url_segment');
?>
<div id="product-list">
<ul>
<?php foreach ($products as $product):?>
<?php $href = tos_router_url(array('url' => $parent_url_segment . '/' . $product['url_segment']));?>
<li>
    <a title="<?php echo $product['caption'];?>"  href="<?php echo $href;?>">
        <?php echo tos_img($product['thumbnail'],134, 134);?>
    </a>
    <a href="<?php echo $href;?>"><?php echo $product['caption'];?></a>
</li>
<?php endforeach;?>
</ul>
</div>
<?php $this->display_box('pagination');?>